<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<ui:composition template="/templates/templateLayout.xhtml">
	
		

	<ui:define name="centerContent">
		<h:panelGroup layout="block"
			class="title ui-widget-header ui-corner-all"
			style="padding: 8px; font-size: 16px !important; text-align: center;">
			<h:outputText value="#{msgs['login.page']}" />
		</h:panelGroup>
		

		<h:panelGroup layout="block" styleClass="centerContent"
			style="font-size: 14px;">
			<h:panelGrid columns="2">
				<h:form id="loginForm" prependId="false">
				<p:growl  autoUpdate="true" showDetail="true" life="3000" globalOnly="true"/>
	
					<h:panelGrid columns="3">
						<h:outputLabel for="j_username" value="#{msgs['form.usuario']}" />
						<p:inputText id="j_username" value="#{loginBean.username}"
							required="true" requiredMessage="#{msgs['validation.required']}" />
						<p:message for="j_username" />
						<h:outputLabel for="j_password" value="#{msgs['form.pass']}" />
						<p:password id="j_password" value="#{loginBean.password}"
							required="true" requiredMessage="#{msgs['validation.required']}" />
						<p:message for="j_password" />
					</h:panelGrid>
					<p:commandButton id="submitButton" value="#{msgs['btn.ingresar']}" action="#{loginBean.login}" update="loginForm" />
				</h:form>

				<f:facet name="footer">
					<h:panelGroup layout="block"
						style="text-align: right; padding: 2px;">
						<h:panelGroup layout="block"
							style="text-align:center; padding-bottom:8px; font-style:italic;">
							<h:outputText value="#{msgs['login.footer']}" />
						</h:panelGroup>
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>

		</h:panelGroup>
	</ui:define>
</ui:composition>
</html>